package com.ruoyi.clothing.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.clothing.mapper.SysCustomizationOrderMapper;
import com.ruoyi.clothing.domain.SysCustomizationOrder;
import com.ruoyi.clothing.service.ISysCustomizationOrderService;

/**
 * 定制订单管理Service业务层处理
 *
 * @author weh
 * @date 2024-01-21
 */
@Service
public class SysCustomizationOrderServiceImpl implements ISysCustomizationOrderService
{
    @Autowired
    private SysCustomizationOrderMapper sysCustomizationOrderMapper;

    /**
     * 查询定制订单管理
     *
     * @param id 定制订单管理主键
     * @return 定制订单管理
     */
    @Override
    public SysCustomizationOrder selectSysCustomizationOrderById(Integer id)
    {
        return sysCustomizationOrderMapper.selectSysCustomizationOrderById(id);
    }

    /**
     * 查询定制订单管理列表
     *
     * @param sysCustomizationOrder 定制订单管理
     * @return 定制订单管理
     */
    @Override
    public List<SysCustomizationOrder> selectSysCustomizationOrderList(SysCustomizationOrder sysCustomizationOrder)
    {
        return sysCustomizationOrderMapper.selectSysCustomizationOrderList(sysCustomizationOrder);
    }

    /**
     * 新增定制订单管理
     *
     * @param sysCustomizationOrder 定制订单管理
     * @return 结果
     */
    @Override
    public int insertSysCustomizationOrder(SysCustomizationOrder sysCustomizationOrder)
    {
        return sysCustomizationOrderMapper.insertSysCustomizationOrder(sysCustomizationOrder);
    }

    /**
     * 修改定制订单管理
     *
     * @param sysCustomizationOrder 定制订单管理
     * @return 结果
     */
    @Override
    public int updateSysCustomizationOrder(SysCustomizationOrder sysCustomizationOrder)
    {
        return sysCustomizationOrderMapper.updateSysCustomizationOrder(sysCustomizationOrder);
    }

    /**
     * 批量删除定制订单管理
     *
     * @param ids 需要删除的定制订单管理主键
     * @return 结果
     */
    @Override
    public int deleteSysCustomizationOrderByIds(Integer[] ids)
    {
        return sysCustomizationOrderMapper.deleteSysCustomizationOrderByIds(ids);
    }

    /**
     * 删除定制订单管理信息
     *
     * @param id 定制订单管理主键
     * @return 结果
     */
    @Override
    public int deleteSysCustomizationOrderById(Integer id)
    {
        return sysCustomizationOrderMapper.deleteSysCustomizationOrderById(id);
    }

    @Override
    public int customizedOrder(SysCustomizationOrder sysCustomizationOrder) {
        return sysCustomizationOrderMapper.customizedOrder(sysCustomizationOrder);
    }

    @Override
    public List<SysCustomizationOrder> listByOwner(Integer owner) {
        return sysCustomizationOrderMapper.listByOwner(owner);
    }
}
